<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:template match="field[@type = 'multi_link' and parent::doctype]" mode="dtf_error">
		<xsl:if test="../../pass_info/error[@field_name = current()/@name]">
			<xsl:choose>
				<xsl:when test="../../pass_info/error[@field_name = current()/@name and @name = 'UNFILLED']">
					<div class="error">
						<span>Это обязательное поле, и оно должно быть заполнено</span>
					</div>
				</xsl:when>
				<xsl:when test="../../pass_info/error[@field_name = current()/@name and @name = 'UNEXISTED_VALUE']">
					<div class="error">
						<span>Выбрано несуществующее значение. Попробуйте ещё раз</span>
					</div>
				</xsl:when>
			</xsl:choose>
		</xsl:if>
	</xsl:template>
	<xsl:template match="field[@type = 'multi_link' and parent::doctype]" mode="dtf_multi_link_add_more">
		<xsl:text>Добавить ещё</xsl:text>
	</xsl:template>
	<xsl:template match="field[@type = 'multi_link' and parent::doctype]" mode="dtf_multi_link_not_selected">
		<xsl:text>Не выбрано</xsl:text>
	</xsl:template>
</xsl:stylesheet>
